import request from "@/utils/request";

export function fetchSuggest(params) {
    return request
        .get("/fore/blog/fetchSuggest", {
            params: params
        })
}

export function selectBATByUser(params) {
    return request
        .get("/fore/blog/selectBATByUser", {
            params: params
        })
}

export function likeCountChange(data) {
    return request.put("/fore/blog/likeCountChange", data)
}

export function colCountChange(data) {
    return request.put("/fore/blog/colCountChange", data)
}

export function publish(data) {
    return request.post("/fore/blog/publish", data)
}

export function delBlog(params) {
    return request.delete("/fore/blog/delete", {
        params:params
    })
}
